package com.inphase.core;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.Clock;

@SpringBootApplication
@RestController

public class CoreApplication {

    @RequestMapping({"/","/index"})
    public long now(){
        return Clock.systemUTC().millis();
    }


    public static void main(String[] args) {
        SpringApplication.run(CoreApplication.class,args);
    }
}
